﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="DatePickerUC.ascx.cs" Inherits="UC_DatePickerUC" %>
<%@ Register src="WaterMarkedTextBox.ascx" tagname="WaterMarkedTextBox" tagprefix="uc" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>

<asp:Panel id="pnlDatePicker" runat="server">
<asp:TextBox id="txtDate" runat="server" ></asp:TextBox>
<ajaxToolkit:TextBoxWatermarkExtender ID="wtrMrkDate" runat="server" TargetControlID="txtDate" WatermarkText="Date"/>
<ajaxToolkit:CalendarExtender ID="ajxCalendarDate" runat="server" Format="MMM/dd/yyyy" TargetControlID="txtDate" PopupPosition="BottomRight"/>
<asp:Label runat="server" ID="lblDateReq"  CssClass="error" style="display:none;">*</asp:Label>
<asp:RequiredFieldValidator ID="reqDate" runat="server" ControlToValidate="txtDate" SetFocusOnError="true" Enabled="false" 
  CssClass="error" style="display:none;" Text="Req" ErrorMessage="Req" ValidationGroup="submit" ></asp:RequiredFieldValidator>
  <%--<asp:CompareValidator ID="cmpDate" runat="server" ControlToValidate="txtDate" Operator="DataTypeCheck" 
  ErrorMessage="Invalid Date Format" Type="Date" SetFocusOnError="true"></asp:CompareValidator>--%>
  </asp:Panel>
